module drawstateMux(state, X, cX, qX, Y, cY, qY);
	input [2:0] state;
	input [8:0] cX;
	input [7:0] cY;
	input [4:0] X,Y;
	
	output reg[8:0] qX;
	output reg[7:0] qY;

	always@(*)
		case(state)
			3'b000: begin qX = cX + X; qY = cY + Y; end
			3'b001: begin qX = cX - X; qY = cY + Y; end
			3'b010: begin qX = cX + X; qY = cY - Y; end
			3'b011: begin qX = cX - X; qY = cY - Y; end
			3'b100: begin qX = cX + Y; qY = cY + X; end
			3'b101: begin qX = cX - Y; qY = cY + X; end
			3'b110: begin qX = cX + Y; qY = cY - X; end
			3'b111: begin qX = cX - Y; qY = cY - X; end
		endcase
		
//	always@(*)
//		case(state)
//			3'b000: qY = cY + Y;
//			3'b001: qY = cY + Y;
//			3'b010: qY = cY - Y;
//			3'b011: qY = cY - Y;
//			3'b100: qY = cY + X;
//			3'b101: qY = cY + X;
//			3'b110: qY = cY - X;
//			3'b111:qY = cY - X;
//		endcase

endmodule 